/**
 * 
 */
package design_pattern.command;

/**
 * @author linzq
 *
 */
public class Invoker {

  private Command command;

  public Invoker(Command command) {
    this.command = command;
  }

  /**
   * 行动方法
   */
  public void action() {
    command.execute();
  }

}
